package org.tis.tools.abf.module.sys.entity.vo;

import lombok.Data;
import org.tis.tools.abf.module.sys.entity.enums.DictFromType;
import org.tis.tools.abf.module.sys.entity.enums.DictType;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by chenchao
 * Created on 2018/9/10 21:18
 */
@Data
public class SysDictHandelDetail {
    private String guid = "";

    private String dictKey ="";

    private String dictName ="";

    private String guidParent = "";

    private DictType dictType = null;

    private DictFromType fromType = null;

    private String sendValue = "";

    private String dictDesc = "";

    private List<Object> children = new ArrayList<>();

    public SysDictHandelDetail(){}

    public SysDictHandelDetail( String dictKey, String dictName,String guidParent,DictType dictType,DictFromType fromType,List<Object> children){
        this.dictKey = dictKey;
        this.dictName = dictName;
        this.children = children;
        this.guidParent = guidParent;
        this.dictType = dictType;
        this.fromType = fromType;
    }


    public SysDictHandelDetail(SysDictHandelDetail sysDictHandelDetail,List<Object> list){
        this.guid = sysDictHandelDetail.getGuid();
        this.dictKey = sysDictHandelDetail.getDictKey();
        this.dictName = sysDictHandelDetail.getDictName();
        this.dictType = sysDictHandelDetail.getDictType();
        this.fromType = sysDictHandelDetail.getFromType();
        this.guidParent = sysDictHandelDetail.getGuidParent();
        this.sendValue = sysDictHandelDetail.getSendValue();
        this.dictDesc = sysDictHandelDetail.getDictDesc();
        this.children = list;
    }

}
